//
//  FirstViewController.m
//  MKViewController
//
//  Created by Mickey on 2017/1/22.
//  Copyright © 2017年 711. All rights reserved.
//

#import "FirstViewController.h"

@interface FirstViewController ()

@end

@implementation FirstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"first" ;
    self.view.backgroundColor = [ UIColor whiteColor ] ;
    // Do any additional setup after loading the view.
    [self setBackBarItemWithImg:[UIImage imageNamed:@"icon_map_middle_car"]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)backBarBtnClicked:(id)sender{
    [self.navigationController popViewControllerAnimated:YES ];
}


- (UIInterfaceOrientationMask)supportedInterfaceOrientations {

    return UIInterfaceOrientationMaskAll ;
}

- (BOOL)shouldAutorotate {

    return YES;
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {

    return UIInterfaceOrientationPortrait | UIInterfaceOrientationPortraitUpsideDown|UIInterfaceOrientationLandscapeLeft|UIInterfaceOrientationLandscapeRight;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
